package ac2;


import ac2.util.serial.PacketReader;

public class ListenerInterface {

    public static void main(String[] args)
    {
    	System.out.println("Starting listener");

		PacketReader reader;
		reader = new PacketReader();
		if (args.length > 0)
		{
			for (int i = 0; i < args.length; i++)
			{
				if (args[i].equalsIgnoreCase("-d")) { Global.Debug = true; }
				else {
					System.out.println("Using " + args[i]);
					reader = new PacketReader(args[i]);		
				}
			}
						
		}
		else
		{
			System.out.println("Using default serial");
		}
		
		reader.run();
		
    }
}
